package com.zs.usc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

/**
 * <p>
 *
 * </p>
 *
 * @author ZS
 * @since 2021-12-11
 */
@TableName("usc_menu")
@ApiModel(value="MenuInfo对象", description="")
@Data
@ToString
public class MenuInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "menu_Id",type = IdType.ASSIGN_ID)
    private String menuId;

    @ApiModelProperty(value = "父级菜单ID")
    @TableField("parent_Id")
    private String parentId;

    @ApiModelProperty(value = "菜单名称")
    @TableField("menu_Name")
    private String menuName;

    @ApiModelProperty(value = "菜单类型")
    @TableField("menu_Type")
    private String menuType;

    @ApiModelProperty(value = "请求路径")
    @TableField("path")
    private String path;

    @ApiModelProperty(value = "组件路径")
    @TableField("component")
    private String component;

    @ApiModelProperty(value = "重定向路径")
    @TableField("redirect")
    private String redirect;

    @ApiModelProperty(value = "菜单图标")
    @TableField("menu_Icon")
    private String menuIcon;

    @ApiModelProperty(value = "是否外链")
    @TableField("is_Frame")
    private Integer isFrame;

    @ApiModelProperty(value = "是否启用")
    @TableField("is_Enable")
    private Integer isEnable;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_Delete")
    private Integer isDelete;

    @ApiModelProperty(value = "排序号")
    @TableField("show_Order")
    private Integer showOrder;

    @ApiModelProperty(value = "创建者")
    @TableField(value = "creator_Id",fill = FieldFill.INSERT)
    private String creatorId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_Time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后修改者")
    @TableField(value = "last_Update_User_Id",fill = FieldFill.INSERT_UPDATE)
    private String lastUpdateUserId;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value = "last_Update_Time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime lastUpdateTime;

    // 应用标识 serverFlag
    @ApiModelProperty(value = "应用编码")
    @TableField("server_Flag")
    private String serverFlag;

    //菜单标识 menuFlag
    @ApiModelProperty(value = "菜单标识/权限标识")
    @TableField("menu_Flag") // 唯一 同时可用作接口权限标识
    private String menuFlag;



}
